<template>
  <div id="system">
    <tab :tabs="tabs" :perm="perm" :map="map" v-if="$store.getters.menu!='newmenu'" />
    <div class="router-view-3">
      <router-view />
    </div>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        tabs: this.$t('system.tabs'),
        map: ['mgnt_sysupgrade', 'mgnt_backup_restore','mgnt_system', ],
      }
    },
    computed: {
      perm: {
        get(){
          return this.$store.state.info.perm.mgnt
        },
        // get: () => this.$store.state.info.perm.mgnt
      },
    },
    methods: {

    },
    created(){
      this.$emit('changeIdx', 5)
    }
  }
</script>

<style lang="scss" scoped>

</style>
